package com.alex.aop.configByXML;

import org.springframework.context.support.ClassPathXmlApplicationContext;

public class Application {

    public static void main(String[] args) {
        ClassPathXmlApplicationContext ctx = new ClassPathXmlApplicationContext("aop-by-xml.xml");

        ArithmeticCalculator arithmeticCalculator = ctx.getBean(ArithmeticCalculator.class);

        arithmeticCalculator.add(1,4);
//        arithmeticCalculator.sub(6,3);
//        arithmeticCalculator.mul(2,5);
//        arithmeticCalculator.div(12,0);
    }
}
